package com.mapper;

import com.entity.News;
import com.entity.NewsExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface NewsMapper {
    long countByExample(NewsExample example);

    int deleteByExample(NewsExample example);

    int deleteByPrimaryKey(Integer nid);

    int insert(News record);

    int insertSelective(News record);

    List<News> selectByExample(NewsExample example);

    List<News> getNewsByPage(Map map);

    News selectByPrimaryKey(String nId);

    News getNewsByIdWithAnos(String nId);

    int updateByExampleSelective(@Param("record") News record, @Param("example") NewsExample example);

    int updateByExample(@Param("record") News record, @Param("example") NewsExample example);

    int updateByPrimaryKeySelective(News record);

    int updateByPrimaryKey(News record);


}